package com.mimc.common.constant;

/**
 * 缓存的key 常量
 * 
 * @author ruoyi
 */
public class CacheConstants
{
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     * 手机验证码缓存
     */
    public static final String APP_CODE_MOBILE_KEY="app_code_mobile:";

    /**
     * 上下文缓存key
     */
    public static final String APP_USER_CHATGPT_CONTEXT="user_chatgpt:";
    /**
     * 配置
     */
    public static final String SYS_CONFIG_NAME = "sys_config";
    /**
     * 验证码
     */
    public static final String APP_CODE_MOBILE_NAME="app_code_mobile";
    /**
     * 轮播
     */
    public static final String APP_BANNER="app_banner";
    /**
     * 分类
     */
    public static final String APP_CATEGORY="app_category";
    public static final String APP_CATEGORY_KEY="app_category_key_";
    public static final String APP_CATEGORY_ALL_KEY="app_category_all_key_";
    /**
     * 首页统计
     */
    public static final String APP_STATISTICS="app_statistics";
    public static final String APP_STATISTICS_KEY="app_statistics_key";

    /**
     * 我的关注用户ID
     */
    public static final String APP_FOLLOWS="app_follows";
    public static final String APP_FOLLOWS_USER_KEY="app_follows_user";

    /**
     * chatgpt用户对话上下文
     */
    public static final String APP_CHATGPT_CONTEXT="app_chatgpt_context";
    public static final String APP_CHATGPT_CONTEXT_USER_KEY="user_";

    /**
     * MIMC TOKEN缓存
     */
    public static final String APP_MIMC_TOKEN="app_mimc_token";
    public static final String APP_MIMC_ACCOUNT_KEY_PREFIX="account_";
    public static final int APP_MIMC_TOKEN_LIVETIME=60*60*24*3;//缓存时间3天

    public static final String EMAIL_CODE="email_code";
    public static final int EMAIL_CODE_LIVETIME=10*60;

    public static final String LANG="lang";//语言
    public static final String LANG_LIST="list";//语言列表

    public static final String TANSLATE="translate";//翻译列表

}
